package controllers

import (
	"gitee.com/liuziloong/ga1400gateway/models"
	"github.com/astaxie/beego"
)

type ImageController struct {
	beego.Controller
}

//人脸资源
func (c *ImageController) Faces() {
	c.Data["json"] = models.Faces(c.Ctx.Input.RequestBody, c.Ctx.Request.Host)
	c.ServeJSON()
}

//人员资源
func (c *ImageController) Persons() {
	c.Data["json"] = models.Persons(c.Ctx.Input.RequestBody, c.Ctx.Request.Host)
	c.ServeJSON()
}
